discriminated unionをomitする
code:ts
type X = Omit<
{ type: 'a'; date: 'date'; a: 4 } | { type: 'b'; date: 'date'; b: 55 },
'date'
;
code:ts
type RemoveNameField<Type> = {
};
code:ts
type OmitUnion<T, K extends keyof any> = T extends any ? Omit<T, K> : never
たぶんpickも同様?